﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>后台管理员列表</title>
</head>
<body>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Viewport runat="server" Layout="fit">
        <Items>
            <ext:GridPanel ID="GridPanel1" runat="server" StripeRows="true" TrackMouseOver="true">
                <Store>
                    <ext:Store runat="server">
                        <Proxy>
                            <ext:HttpProxy Url="/BgMgr/WebAdmin/GetAllAdmins" />
                        </Proxy>
                        <Reader>
                            <ext:JsonReader IDProperty="UID" Root="data" TotalProperty="total">
                                <Fields>
                                    <ext:RecordField Name="UID" />
                                    <ext:RecordField Name="MemberID" />
                                    <ext:RecordField Name="Password" />
                                    <ext:RecordField Name="LastLogin" Type="Date" />
                                    <ext:RecordField Name="LastLoginIP" />
                                    <ext:RecordField Name="LoginCount" Type="Int" />
                                    <ext:RecordField Name="CreateTime" Type="Date" />
                                </Fields>
                            </ext:JsonReader>
                        </Reader>
                        <SortInfo Field="UID" Direction="ASC" />
                    </ext:Store>
                </Store>
                <LoadMask ShowMask="true" Msg="列表加载中,请稍后..." />
                <ColumnModel runat="server">
                    <Columns>
                        <ext:Column Header="UID" DataIndex="UID" />
                        <ext:Column Header="MemberID" DataIndex="MemberID" />
                        <ext:DateColumn Header="上次登录时间" DataIndex="LastLogin" Format="yyyy-MM-dd hh:mm:ss" />
                        <ext:Column Header="上次登录IP" DataIndex="LastLoginIP" />
                        <ext:Column Header="总登录次数" DataIndex="LoginCount" />
                        <ext:DateColumn Header="创建时间" DataIndex="CreateTime" Format="yyyy-MM-dd hh:mm:ss" />
                    </Columns>
                </ColumnModel>
                <SelectionModel>
                    <ext:RowSelectionModel runat="server" SingleSelect="true" />
                </SelectionModel>
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
</body>
</html>
